
<table width="100%" cellpadding="0" cellspacing="0" height="100%" class="tableA">
	<tr class="bgA trA">
		<th class="tac"><h1><a href="javascript:;">网站管理</a></h1></th>
		<td>
			<div class="navA_wrap">
				<ul class="navA">
					<li><a target="displayWindow" href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'start'), 'default', true); ?>"><em>后台</em>Admin</a></li>
					<li><a target="_blank" href="<?php echo $this->url(array(), 'default', true); ?>"><em>前台</em>Home</a></li>
				</ul>
			</div>
		</td>
	</tr>
	<tr class="trC">
		<th class="bgA">
			<!-- <a href="#" class="mr10">前台首页</a>|<a href="javascript:;" class="link_down"><span>常用功能</span></a> -->
		</th>
		<td class="bgA">
			<div class="fr mr10">管理员：<?php echo $this->currentAdminUser->getName(); ?> <a target="displayWindow" href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'profile', 'action' => 'modify'), 'default', true);?>">[修改密码]</a><a class="opLogout" href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'logout'), 'default', true); ?>">[注销]</a></div>
			<div class="breadCrumb">
			<!-- <span>当前位置</span><em>&gt;</em><span>站点首页</span><em>&gt;</em><span>xx</span> -->
			</div>
		</td>
	</tr>
	<tr class="trD vt">
		<th>
			<div class="menubar">
				<dl class="current">
				<?php $permissionList = $this->currentAdminUser->getPermissionList(); ?>
				<?php foreach ($permissionList as $item): ?>
					<dt><a target="displayWindow" href="<?php echo $item['keys'] ? $this->url($item['keys'], 'default', true) : 'javascript:;'; ?>"><?php echo $item['title']; ?></a></dt>
					<?php if (isset($item['subItems']) && $item['subItems']): ?>
					<dd>
						<ul>
						<?php foreach ($item['subItems'] as $item): ?>
							<li><a target="displayWindow" href="<?php echo $item['keys'] ? $this->url($item['keys'], 'default', true) : 'javascript:;'; ?>"><?php echo $item['title']; ?></a></li>
						<?php endforeach; ?>
						</ul>
					</dd>
					<?php endif; ?>
				<?php endforeach; ?>
				</dl>
			</div>
		</th>
		<td>
			<iframe name="displayWindow" src="<?php echo $this->url(array('module' => 'admin', 'controller' => 'start'), 'default', true); ?>" width="100%" height="100%" frameborder="no" scrolling="auto" style="border: 0pt none;"></iframe>
		</td>
	</tr>
</table>

<script language="javascript">
$(document).ready(function() {
	$("a.opLogout").click(function() {
		return confirm('您确定注销吗？');
	});
})
</script>